server:
  port: ${port}

spring:
  main:
    allow-bean-definition-overriding: true
  servlet:
    multipart:
      max-file-size: 100MB
      max-request-size: 200MB
  application:
    name: ${artifactId}
  datasource:
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      driver-class-name: com.mysql.cj.jdbc.Driver
      url: ${url}
      username: ${username}
      password: ${password}
      max-wait: 20
      initial-size: 5
      max-active: 6000
      min-idle: 10
      validation-query: select 1
  redis:
    database: 1
    host: localhost
    port: 6379
  flyway:
    baseline-on-migrate: true
    enabled: true
    locations: classpath:/db/migration

#oauth2登录配置，无需配置数据库
oauth:
  config:
    clientId: web_client
    resourceId: resource-id
    secret: secret2022
    grantType: password
    accessTokenValiditySeconds: 7200
    refreshTokenValiditySeconds: 259200
    scopes: all
    jwtKey: ${artifactId}